<template>
  <a-alert :type="type" :show-icon="showIcon" :message="message">
    <slot name="message" slot="message" />
  </a-alert>
</template>

<script>
export default {
  name: 'DAlert',
  props: {
    type: {
      type: String,
      default: 'info'
    },
    showIcon: {
      type: Boolean,
      default: false
    },
    message: {
      type: String,
      default: ''
    }
  }
};
</script>

<style lang="scss" scoped></style>
